You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
278 B

import type { H3Event } from "h3";
const handler = eventHandler(async (event: H3Event) => {
event.node.res.statusCode = 404
return {
code: 0,
message: "该接口不存在"
}
});
export type HealthCheckData = Awaited<ReturnType<typeof handler>>;
export default handler;